package com.dianban.service.impl;

import com.dianban.dao.ShopUserDao;
import com.dianban.entity.ShopUser;
import com.dianban.service.ShopUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true)
public class ShopUserServiceImpl implements ShopUserService {

    @Autowired
    private ShopUserDao shopUserDao;

    @Override
    public ShopUser findByMobile(String phone){
        return shopUserDao.findByMobile(phone);
    }

    @Override
    public ShopUser findById(Long id) {
        return shopUserDao.findById(id);
    }

    @Override
    public ShopUser findByStoreId(Long storeId) {
        return shopUserDao.findByStoreId(storeId);
    }
}
